<?php

//左边
$dir = "./study/";

// Open a known directory, and proceed to read its contents
if (is_dir($dir)) {
    if ($dh = opendir($dir)) {
        while (($file = readdir($dh)) !== false) {
			if ($file != "." && $file != ".."  && filetype($dir.$file) != "dir") {
				$filename[] = $file;
			}
        }
        closedir($dh);
    }
}else{
	echo '目录不存在';
}



?>